package com.zhaoyizhe.demo.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
public class RequestPage {
    private Integer page = 1;//默认1页
    private Integer pageSize = 10;//默认一页10个书

    public Integer getOffset() {
        return (page - 1) * pageSize;
    }
}
